package com.hui.xiao.xiaohui.intent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.hui.xiao.xiaohui.R;

/**
 * Created by Administrator on 2016/5/28.
 */
public class ActionAttr extends Activity {
    public static final String MY_ACTION = "com.hui.xiao.xiaohui.intent.ActionAttr";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.action_attr);
        Button attr = (Button) findViewById(R.id.attr);
        attr.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setAction(ActionAttr.MY_ACTION);
                startActivity(intent);
            }
        });
    }
}
